/********************************************
 * Breadcrumb Styles
 ********************************************/

:root {
  --bs-primary: #005a86;
  --primary-color: #005a86;
  --gold-color: #005a86;
  --bs-primary-rgb: 16, 70, 49;
  --bs-primary-text-emphasis: #005a86;
  --bs-primary-bg-subtle: #d1e0d8;
  --bs-primary-border-subtle: #a3c2b2;

  /* Apply the font to body or specific elements */
  body {
    font-family: "DIN Next LT Arabic", -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  .body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .flex-1 {
    flex: 1 1 0;
  }

  /* Font weight utility classes */
  .font-ultralight {
    font-weight: 200;
  }

  .font-light {
    font-weight: 300;
  }

  .font-regular {
    font-weight: 400;
  }

  .font-medium {
    font-weight: 500;
  }

  .font-bold {
    font-weight: 700;
  }

  .font-heavy {
    font-weight: 800;
  }

  .font-black {
    font-weight: 900;
  }

  /* Gold color for accent */
  --bs-gold: #a3875b;
  --bs-gold-rgb: 212, 178, 84;

  /* Adjusting other Bootstrap variables for better harmony */
  --bs-link-color: #005a86;
  --bs-link-hover-color: #005a86;
  --bs-focus-ring-color: rgba(16, 70, 49, 0.25);

  /* Font family */
  --bs-font-sans-serif: "DIN Next LT Arabic", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);

  /* Component specific overrides */
  --bs-btn-active-bg: #005a86;
  --bs-btn-active-border-color: #005a86;
}
/* browser scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #005a86;
}
html {
  font-size: 100%;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

.stroke {
  font-size: 22px;
  color: #161616;
  vertical-align: sub;
}

.stroke-16 {
  font-size: 16px;
}
.stroke-24 {
  font-size: 24px;
}
.stroke-32 {
  font-size: 32px;
}

.stroke-40 {
  font-size: 40px;
}
.stroke-48 {
  font-size: 48px;
}
.stroke-64 {
  font-size: 64px;
}
.border-white-30 {
  border-color: rgb(255 255 255 / 0.3) !important;
}
/* Button primary */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #005a86;
  --bs-btn-border-color: #005a86;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #005a86;
  --bs-btn-hover-border-color: #005a86;
  --bs-btn-focus-shadow-rgb: 73, 115, 98;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #005a86;
  --bs-btn-active-border-color: #005a86;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #005a86;
  --bs-btn-disabled-border-color: #005a86;
}

/* Button outline primary */
.btn-outline-primary {
  --bs-btn-color: #005a86;
  --bs-btn-border-color: #005a86;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #005a86;
  --bs-btn-hover-border-color: #005a86;
  --bs-btn-focus-shadow-rgb: 16, 70, 49;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #005a86;
  --bs-btn-active-border-color: #005a86;
  --bs-btn-disabled-color: #005a86;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #005a86;
}

/* Background colors */
.bg-primary {
  background-color: #005a86 !important;
}

@media (max-width: 576px) {
  .container-fluid.px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Text colors */
.text-primary {
  color: #005a86 !important;
}

/* Border colors */
.border-primary {
  border-color: #005a86 !important;
}

/* Links */
a {
  color: #005a86;
}
a:hover {
  color: #005a86;
}
p {
  font-size: 1.2rem;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
  border-color: #005a86;
}

/* Custom form controls */
.form-check-input:checked {
  background-color: #005a86;
  border-color: #005a86;
}

/* Modal headers */
.modal-header {
  border-bottom-color: rgba(16, 70, 49, 0.2);
}

/* Gold accent color utility classes */
.text-gold {
  color: #a3875b !important;
}
.bg-gold {
  background-color: #a3875b !important;
}
.bg-gold-10 {
  background-color: rgba(163, 135, 91, 0.1) !important;
}
.border-gold {
  border-color: #a3875b !important;
}

/* Additional styles for specific components */
.card-header {
  background-color: rgba(16, 70, 49, 0.05);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #005a86;
  color: #fff;
}

/* Pagination */
.page-item.active .page-link {
  background-color: #005a86;
  border-color: #005a86;
}
.page-link {
  color: #005a86;
}
.page-link:hover {
  color: #005a86;
}

/* Progress bars */
.progress-bar {
  background-color: #005a86;
}

/* List groups */
.list-group-item.active {
  background-color: #005a86;
  border-color: #005a86;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #dee2e6;
}

/* Ensure the new green color is used in mode-toggle switch we created earlier */
.mode-toggle .form-check-input:checked {
  background-color: #005a86;
  border-color: #005a86;
}

/* Custom dropdown styling with arrow-down-01 */
.dropdown-toggle::after {
  display: none !important; /* Hide default Bootstrap dropdown arrow */
}

/* Custom Cards Shadow */
.card {
  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08),
    0px 4px 6px -2px rgba(16, 24, 40, 0.03) !important;
  border: 0 !important;
}

#international-relations-section .card {
  box-shadow: none !important;
}

/* Leadership Card Styles */
.leadership-card .d-flex {
  position: relative;
  overflow: hidden;
}

.leadership-card .d-flex::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.text-justify {
  text-align: justify;
}

/********************************************
 * Breadcrumb Styles
 ********************************************/
.breadcrumb-bg {
  background-color: rgba(0, 104, 179, 0.05);
  /* background-image: url("/arabosai/img/breadcrumnb.svg"); */
  background-repeat: no-repeat;
  background-position: right;
  background-size: auto 100%;
  width: auto;
  height: 100%;
  margin: 0;
  border-top: #005a86 3px solid;
}
/********************************************
 * Hero Banner Styles
 ********************************************/
.hero-banner-wrapper {
  background-image: url("/Style Library/PORTAL/V1/img/hero-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-banner-wrapper img {
  max-height: 50vh;
}

/*  Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-banner-wrapper img {
    height: 200px;
  }
}

/*  Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-banner-wrapper img {
    height: 250px;
  }
}

/*  X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-banner-wrapper img {
    height: 300px;
  }
}

/*  XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-banner-wrapper img {
    height: 400px;
  }
}
/********************************************
 * News Styles
*********************************************/
.news-card {
  overflow: hidden;
  border-radius: 16px;
  height: 350px;
}

.news-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-in-out;
}

.news-card:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
  border-radius: 16px;
}

.news-card-image-container {
  overflow: hidden;
}
.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4em;
  max-height: 2.8em; /* fallback for browsers that don't support line-clamp */
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4em;
  max-height: 2.8em; /* fallback for browsers that don't support line-clamp */
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .news-card {
    height: 120px;
  }

  .news-card img {
    height: 120px;
  }
}

/*  Small devices (tablets, 768px and down) */
@media (max-width: 768px) {
  .news-card {
    height: 180px;
  }

  .news-card img {
    height: 180px;
  }
}

/*  Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .news-card {
    height: 180px;
  }

  .news-card img {
    height: 180px;
  }
}

/*  Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .news-card {
    height: 250px;
  }

  .news-card img {
    height: 250px;
  }
}

/*  X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .news-card {
    height: 280px;
  }

  .news-card img {
    height: 280px;
  }
}

/*  XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .news-card {
    height: 350px;
  }

  .news-card img {
    height: 350px;
  }
}

/********************************************
 * Presedent Card 
*********************************************/

.presedent-card {
  display: flex;
}
.presedent-card .presedent-image {
  width: auto;
  height: 500px;
}
@media (max-width: 992px) {
  .presedent-card .presedent-image {
    max-width: 95% !important;
    height: 350px !important;
    border-radius: 15px;
  }
}
.presedent-card a {
  min-width: 200px;
}

.president-image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: 4px solid var(--bs-primary);
}

@media (max-width: 768px) {
  .president-image {
    width: 220px;
    height: 220px;
  }
}

.president-image:hover {
  transform: scale(1.02);
}

.president-hero-card {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  overflow: hidden;
  padding: 2rem;
}

.president-message-container {
  position: relative;
}

/********************************************
 * Slider Cards
*********************************************/
.cards-slider-container #cards-slider {
  overflow: hidden;
  padding: 60px 0;
  position: relative;
  width: 100%;
}

.cards-list {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  position: relative;
  height: 500px;
}

.slider-card {
  position: absolute;
  padding: 15px;
  transition: all 0.5s ease;
  top: 0px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  box-sizing: border-box;
  min-width: 380px;
  max-width: 500px;
  height: 500px;
  width: 100%;
  border-radius: 16px !important;
}

.slider-card.active {
  z-index: 5;
  transform: translateX(-50%) scale(1);
}

.slider-card.left-1 {
  z-index: 4;
  transform: translateX(-120%) scale(0.9);
}

.slider-card.left-2 {
  z-index: 3;
  transform: translateX(-190%) scale(0.8);
}

.slider-card.right-1 {
  z-index: 4;
  transform: translateX(20%) scale(0.9);
}

.slider-card.right-2 {
  z-index: 3;
  transform: translateX(90%) scale(0.8);
}

.slider-card .card-item {
  transition: all 0.5s ease;
  transform-origin: center;
  width: 100%;
  height: 100%;
}

/* Updated slider card container */
.slider-card .card {
  border-radius: 16px !important;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.slider-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 70, 49, 0.15) !important;
}

/* Card image container */
.slider-card .card-img-container {
  border-radius: 16px 16px 0 0;
}

.slider-card .card-img-top {
  transition: transform 0.3s ease;
  border-radius: 16px 16px 0 0;
}

.slider-card .card:hover .card-img-top {
  transform: scale(1.05);
}

/* Date badge styling */
.slider-card .badge.bg-primary {
  background-color: var(--primary-color) !important;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Card title styling */
.slider-card .card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--primary-color);
}

/* Card text styling */
.slider-card .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Button styling */
.slider-card .btn-primary {
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.slider-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 4, 133, 0.3);
}

/* Responsive adjustments for slider cards */
@media (max-width: 768px) {
  .slider-card .card-img-top {
    height: 160px !important;
  }

  .slider-card .card-body {
    padding: 1rem !important;
  }

  .slider-card .card-title {
    font-size: 1rem;
  }
  .slider-card .card-text {
    font-size: 0.9rem !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@media (max-width: 576px) {
  .slider-card .card-img-top {
    height: 140px !important;
  }

  .slider-card .card-title {
    font-size: 0.95rem;
  }
}

/********************************************
 * Footer Styles
*********************************************/

.footer-bg {
  background-color: #005a86;
  /* background-image: url("/arabosai/img/pattern-en.svg"); */
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  border-top: #a1cc3a 3px solid;
}

/********************************************
 * Text Trim Utilities
*********************************************/

.text-trim {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.text-trim-1 {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.text-trim-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.text-trim-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.text-trim-4 {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.text-trim-5 {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.text-trim-6 {
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

/* Styles for description text in par cards */
.description-text {
  color: #6c757d;
  font-size: 0.9rem;
  min-height: 4.5em; /* Approximately 3 lines of text */
  cursor: pointer;
}
/********************************************
 * Image Gallery 
*********************************************/
.gallery-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  margin: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.gallery-wrapper::-webkit-scrollbar {
  height: 5px;
  display: block;
}

.gallery-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.gallery-wrapper:active {
  cursor: grabbing;
}

.gallery-wrapper.active {
  cursor: grabbing;
  user-select: none;
}

.image-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
}

.image-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Small devices (1 image visible) */
@media (max-width: 767.98px) {
  .image-card {
    width: calc(100% - 2rem);
  }
}

/* Medium devices (2 images visible) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .image-card {
    width: calc(50% - 1rem);
  }
}

/* Large devices (3 images visible) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .image-card {
    width: calc(33.333% - 1rem);
  }
}

/* X-Large devices (4 images visible) */
@media (min-width: 1200px) {
  .image-card {
    width: calc(25% - 1rem);
  }
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
